const objArr = [{
    name: '卢本伟',
    pass: true
}, {
    name: '余一帆',
    pass: true
}]

const str = JSON.stringify(objArr);
// console.log(JSON.parse(str)[0]);
localStorage.setItem("xueyuan", str);